
const isProduction = process.env.NODE_ENV === 'production';
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import i18n from './i18n/i18n'

import utils from './utils'
import store from './store'
import './config/build'

import moment from 'moment'
import "moment/locale/zh-cn";
moment.locale('zh-cn');
Vue.prototype.$moment = moment;

//生产环境不需要安装'

if (isProduction) {
    Vue.prototype.$ = jQuery;
}else {
    //开发环境
    Vue.prototype.$ = require('jquery');
}


//按需导入图表
import ECharts from 'vue-echarts/components/ECharts.vue'
import 'echarts/lib/chart/bar'
import 'echarts/lib/chart/line'
import 'echarts/lib/component/tooltip'
import 'echarts/lib/component/title'

Vue.component('chart', ECharts);

import uploader from 'vue-simple-uploader'
Vue.use(uploader);


// 引入Ant Design样式
import '@/assets/css/color.less'
import '@/assets/css/colors.less'
// 覆盖Ant Design样式
import '@/assets/css/overwrite.less'
// 引入基本样式
import '@/assets/css/basic.less'
//阿里云图标
import './assets/iconfont/iconfont.css'

Vue.config.productionTip = true;


let appVue={
    router,
    store,
    i18n,
    utils,
    render: h => h(App)
}

new Vue(appVue).$mount('#app');

